package nml.mail.reg.smtp;


import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  sina_com_hk extends Reg{

	public void reg(String username, String password) {		
		
		//\
		String url = "https://login.sina.com.hk/cgi-bin/register.cgi?.channel=mysinamail&.dest=http%253A%252F%252Fmysinamail.sina.com.hk%252F&.landing=&.skiplanding=1";
		get(url);
		
		dr.findElement(By.name("user_name")).sendKeys(username);
		dr.findElement(By.name("password")).sendKeys(password);
		dr.findElement(By.name("password2")).sendKeys(password);
		
		dr.findElement(By.name("selectQid")).sendKeys("我的座右铭是？");
		dr.findElement(By.name("pwdA")).sendKeys("我不知道");
	
		dr.findElement(By.name("door")).click();
		
		
		System.out.println(username+"@sina.cn");
	}

	public static void main(String[] args) {
		new sina_com_hk().reg("qq331798654", "qq3131798654");
	}
	
	
}
